package org.example.service.impl;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.service.ribbonService;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @Auther:Liu
 * @Testname:ribbonServiceImpl
 * @Date:2025/9/8 16:38
 */
@Service
@Slf4j
public class ribbonServiceImpl implements ribbonService {
    @Resource
    private RestTemplate restTemplate;

    @Override
    public String a() {
                         //cloud-service-goverance-prodiver
        String url="http://cloud-service-goverance-prodiver/prodiver";
        return restTemplate.getForObject(url, String.class);
    }
}
